package com.zhouyu.service;

import com.spring.*;

@Component
public class UserService implements InitializingBean,UserInterface, BeanNameAware {

	@Autowired
	private OrderService orderService;

	@ZhouyuValue("aaaaaa")
	private String test;

	private String beanName;

	public void test() {
//		System.out.println("test...");
		System.out.println(orderService);
		System.out.println(test);
		System.out.println(beanName );
	}

	@Override
	public void afterPropertiesSet() {
		System.out.println("初始化");
	}

	@Override
	public void setBeanName(String name) {
		this.beanName = name;
	}
}
